package com.example.demo.entity;

import java.io.Serializable;

public class OrderResult<T> implements Serializable
{
    int code;
    private T data1 = null;
    private T data2 = null;
    private T data3 = null;
    private T data4 = null;
    int total;

    public T getData4() {
        return data4;
    }

    public OrderResult<T> setData4(T data4) {
        this.data4 = data4;
        return this;
    }

    public T getData1() {
        return data1;
    }

    public OrderResult<T> setData1(T data1) {
        this.data1 = data1;
        return this;
    }

    public T getData2() {
        return data2;
    }

    public OrderResult<T> setData2(T data2) {
        this.data2 = data2;
        return this;
    }

    public T getData3() {
        return data3;
    }

    public OrderResult<T> setData3(T data3) {
        this.data3 = data3;
        return this;
    }

    public int getTotal() {
        return total;
    }

    public OrderResult<T> setTotal(int total) {
        this.total = total;
        return this;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


}
